package com.rfid.project.model;

import javax.persistence.*;

import biz.core.KeyValue;
import biz.util.KeyValueUtil;
import biz.util.StringUtil;
import biz.core.IdEntity;

import java.util.Date;
import java.util.ArrayList;
import java.util.List;

@Entity
public class PublicNotice extends IdEntity {

	// 标题
	private String title;

	// 内容
	private String content;

	// 发布时间
	private Date publishTime;

	// 发布人
	@ManyToOne
	@JoinColumn(name = "PublisherID")
	private People publisher;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public People getPublisher() {
		return publisher;
	}

	public void setPublisher(People publisher) {
		this.publisher = publisher;
	}

}
